package com.east.exception;

import org.springframework.web.HttpRequestMethodNotSupportedException;

public enum ExecptionMeaning {
	NullPointerException("空指针引用异常,请检查参数",1),
	ClassCastException("类型强制转换异常",2),
	IllegalArgumentException ("传递非法参数异常",3),
	ArithmeticException ("算术运算异常",4),
	ArrayStoreException  ("向数组中存放与声明类型不兼容对象异常",5),
	IndexOutOfBoundsException ("下标越界异常",6),
	NegativeArraySizeException  ("创建一个大小为负数的数组错误异常",7),
	NumberFormatException ("数字格式异常",8),
	SecurityException  ("违背安全原则异常",9),
	UnsupportedOperationException("不支持的操作异常",10),
	ArrayIndexOutOfBoundsException  ("数组下标越界异常",11),
	EOFException ("文件已结束异常",12),
	FileNotFoundException  ("文件未找到异常",13),
	SQLException("操作数据库异常",14),
	IOException  ("另一个程序正在使用此文件，无法导入",15),
	NoSuchMethodException ("方法未找到异常",16),
	HttpRequestMethodNotSupportedException("请检查请求方式",17),
	BadSqlGrammarException("sql出错,请检查参数是否正确",18),
	DuplicateKeyException("sql主键唯一,联系管理员",19),
	SignatureException("token错误，无法解析",19),
	MalformedJwtException("请输入正确的Token!!!",19),
	JSONException("json解析出错",19),
	UnauthorizedException("权限不足",20),
	UnauthenticatedException("token过期",23),
	UnknownAccountException("账号或密码错误",21),
	DataIntegrityViolationException("主键唯一约束，关联...",22),
	Exception   ("其他异常",18);
	// 成员变量  
    private String name;  
    private int index;  
    
    // 构造方法  
    private ExecptionMeaning(String name, int index) {  
        this.name = name;  
        this.index = index;  
    }  
    
    // get set 方法  
    public String getName() {  
        return name;  
    }  
    public void setName(String name) {  
        this.name = name;  
    }  
    public int getIndex() {  
        return index;  
    }  
    public void setIndex(int index) {  
        this.index = index;  
    }
		
}
